# -*- coding: utf-8 -*-
'''
	python 环境配置 3.8.x
	pip install fastapi
	pip install uvicorn
'''
import uvicorn
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
async def test():
	return {"code":200, "msg":"hello world!"}


if __name__ == '__main__':

    uvicorn.run(
        app     = 'example01:app', 
        host    = "0.0.0.0", 
        port    = 8080, 
        reload  = True
    )